package com.zhanggm.message.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanggm
 * @since 2021-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class KafkaLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息Id
     */
    private String msgId;

    /**
     * 消息内容，json格式
     */
    private String msgContent;

    /**
     * 消息时间
     */
    private LocalDateTime msgTime;

    /**
     * 消息状态：0：开始消费；1：消费完成；消费失败
     */
    private Integer msgStatus;

    /**
     * 消费次数：消费三次失败后，转人工处理
     */
    private Integer msgCount;


}
